﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="myomscl.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Myomscl</title>
    <meta http-equiv="Content-Script-Type" content="text/javascript" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <link type="image/x-icon" href="/favicon.ico" rel="icon" />
    <link type="image/x-icon" href="/favicon.ico" rel="shortcut icon" />
    <link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-precomposed.png" />
    <link type="text/css" rel="stylesheet" media="all" href="/css/main.css" />
    <asp:PlaceHolder runat="server" id="phHideInvalidCss">
        <link type="text/css" rel="stylesheet" media="all" href="/css/main-W3C-invalid.css" />
    </asp:PlaceHolder>
    <script type="text/javascript" src="/scripts/libraries/estate/Estate.js"></script>
    <script src="/scripts/libraries/jquery.min.js" type="text/javascript"></script>
    <script src="/scripts/form_focus.js" type="text/javascript"></script>
    <script src="/scripts/workflow.js" type="text/javascript"></script>
</head>
<body class="Loginpage">
    <form id="form1" runat="server">
    <div class="loginBox" id="DesignTester" runat="server">
        <div class="header">
        </div>
        <div class="formContainer">
            <asp:Login ID="ctrlLogin" runat="server" OnAuthenticate="ctrlLogin_Authenticate"
                OnLoggedIn="ctrlLogin_LoggedIn">
                <LayoutTemplate>
                    <div class="loginFormRow">
                        <asp:Label ID="UserNameLabel" runat="server" CssClass="floatLeft" AssociatedControlID="UserName">Login</asp:Label>
                        <asp:TextBox ID="UserName" CssClass="loginInput floatLeft" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                            ErrorMessage="Login is required." ToolTip="Login is required." ValidationGroup="ctrlLogin">*</asp:RequiredFieldValidator>
                    </div>
                    <div class="loginFormRow">
                        <asp:Label ID="PasswordLabel" runat="server" CssClass="floatLeft" AssociatedControlID="Password">Password</asp:Label>
                        <asp:TextBox ID="Password" CssClass="floatLeft loginInput" runat="server" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                            ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="ctrlLogin">*</asp:RequiredFieldValidator>
                    </div>
                    <div class="loginFormRow">
                        <div class="wwOnthouden">
                            <asp:CheckBox ID="RememberMe" CssClass="checkBoxLabel floatLeft" runat="server" Text="Remember me" />
                        </div>
                        <asp:Button ID="LoginButton" CssClass="loginButton" runat="server" CommandName="Login"
                            Text="Log In" ValidationGroup="ctrlLogin" />
                    </div>
                    <div class="FailureText">
                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                    </div>
                </LayoutTemplate>
            </asp:Login>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="ctrlLogin"
                CssClass="ValidationContainer" />
            <asp:ValidationSummary ID="ValidationSummary2" runat="server" ValidationGroup="ctrlPasswordRecovery"
                CssClass="ValidationContainer" />
            <div class="loginRecovery" runat="server">
                <dl class="carrouselList" id="CarrouselList">
                    <dt><span>Forgot your password?</span></dt>
                    <dd>
                        <asp:PasswordRecovery ID="ctrlPasswordRecovery" runat="server">
                            <UserNameTemplate>
                                <div class="introTxt">
                                    Enter your e-mail address and password will be send to you.                                     
                                </div>
                                <div class="loginFormRow" runat="server">
                                    <asp:Label ID="UserNameLabel" runat="server" CssClass="floatLeft" AssociatedControlID="UserName">Email</asp:Label>
                                    <asp:TextBox ID="UserName" runat="server" CssClass="loginInput floatLeft"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                        ErrorMessage="Please enter your e-mail address." ToolTip="Please enter your e-mail address."
                                        ValidationGroup="ctrlPasswordRecovery">*</asp:RequiredFieldValidator>
                                    <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="This email address is not known."
                                        OnServerValidate="CustomValidator1_ServerValidate" ControlToValidate="UserName"
                                        ValidationGroup="ctrlPasswordRecovery"></asp:CustomValidator>
                                </div>
                                <div class="loginFormRow">
                                    <asp:Button ID="SubmitButton" runat="server" CssClass="sentButton" CommandName="Submit"
                                        Text="Submit" ValidationGroup="ctrlPasswordRecovery" OnClick="SubmitButton_Click" />
                                </div>
                            </UserNameTemplate>
                        </asp:PasswordRecovery>
                    </dd>
                </dl>
            </div>
        </div>
    </div>
    <div id="ResetPassword" runat="server" visible="false">
        <h2 class="settingsTitle">
            Change Password</h2>
        <div class="formcontainer changePasswordForm">
            <div id="NewPassword" runat="server" class="boxRow">
                <asp:Label ID="lblNewPassword" AssociatedControlID="txtNewPassword" runat="server"
                    Text="New Password" CssClass="settingsLabel" />
                <asp:TextBox ID="txtNewPassword" runat="server" TextMode="Password" CssClass="tag_password password styledInput styledInput564"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvNewPassword" runat="server" ErrorMessage="Please enter the new password."
                    ControlToValidate="txtNewPassword" Display="Dynamic" CssClass="valMessage" />
                <div class="clear">
                </div>
            </div>
            <div id="RNewPassword" runat="server" class="boxRow">
                <asp:Label ID="lblRNewPassword" AssociatedControlID="txtRNewPassword" runat="server"
                    Text="Repeat new password" CssClass="settingsLabel" />
                <asp:TextBox ID="txtRNewPassword" runat="server" TextMode="Password" CssClass="styledInput styledInput564"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvRNewPassword" runat="server" ErrorMessage="Please repeat your new password."
                    ControlToValidate="txtRNewPassword" Display="Dynamic" CssClass="valMessage"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="cvNewPassword" runat="server" ErrorMessage="Input for new password do not match."
                    ControlToValidate="txtRNewPassword" Operator="Equal" ControlToCompare="txtNewPassword"
                    Display="Dynamic" CssClass="valMessage" />
                <div class="clear">
                </div>
            </div>
        </div>
        <div class="buttons">
            <asp:Button ID="Button1" runat="server" OnClick="Reset_Click" Text="Save" CssClass="styledButton styledButton75" />
        </div>
        <asp:Label ID="lblStatus" runat="server" Text="Label" Visible="false"></asp:Label>
    </div>
    <script type="text/javascript">
        jQuery(document).ready(function () {
            workflow.Accordion.Init("#CarrouselList");
            workflow.form.checkboxCtrl.SetupLabel();
        }); 
    </script>  
    </form>
</body>
</html>
